echo "Getting dependencies..."
mkdir -Force ".tmp"
$sncl = new-object System.Net.WebClient
$sncl.DownloadFile("https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py", ".\.tmp\get-pip.py")
$sncl.Headers.Add("user-agent", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0")
$sncl.DownloadFile("http://www.lfd.uci.edu/~gohlke/pythonlibs/48dkx8tj/pygame-1.9.2a0-cp33-none-win32.whl", ".\.tmp\pygame-1.9.2a0-cp33-none-win32.whl")

echo "Change WD..."
cd .tmp

echo "Ensuring PIP..."
py -3 get-pip.py

echo "Installing pygame..."
py -3 -m pip install --user pygame-1.9.2a0-cp33-none-win32.whl

echo "Done."

$HOST.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") | OUT-NULL
$HOST.UI.RawUI.Flushinputbuffer()